package com.guiguli.ExtendsDemo;

public class Person {
    String name;
    int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Person(){
        System.out.println("父类的无参构造");
    }

    public Person(String name,int age){
        System.out.println("父类的有参构造");
        this.name = name;
        this.age = age;
    }
}
